<?php
/**
 * 管理员用户
 * @authors generator
 * @date    2020-11-06 18:56:57
 */

namespace App\Commons\Domain\Module\UserCenter\Model;

use App\Commons\Domain\Core\JwtModel;
use App\Commons\Domain\Module\UserCenter\Model\Account;

/**
 * App\Commons\Domain\Module\UserCenter\Model\Admin
 *
 * @property-read Account|null $account
 * @method static \Illuminate\Database\Eloquent\Builder|Admin newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Admin newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Admin query()
 * @mixin \Eloquent
 */
class Admin extends JwtModel
{
    public function account()
    {
        return $this->hasOne(Account::class, 'uid', 'uid');
    }
}
